<?php

class ModuleController extends FrontBaseC
{
	/**
	 * Declares class-based actions.
	 */
	public function actions()
	{

	}

	/**
	 * This is the default 'index' action that is invoked
	 * when an action is not explicitly requested by users.
	 */
	public function actionIndex()
	{
            echo  Yii::app()->request->getParam('as');

	}
	public function actionIndex2()
	{
		// renders the view file 'protected/views/site/index.php'
		// using the default layout 'protected/views/layouts/main.php'
                Yii::app()->cache->set("mason", "5", 3000);
                if(Yii::app()->cache->get("mason")){
                    echo Yii::app()->cache->get("mason");
                }else{
                  //  echo 10;
                }
                //var_dump($rows);
       
		$this->render('index');
	}

	
}